package com.hiquety.tcb.listener;

import com.hiquety.tcb.ui.IndexUI;
import javafx.application.Platform;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ExitBtnListener implements ActionListener {
    @Override
    public void actionPerformed(ActionEvent e) {
        Platform.runLater(() -> {
            Platform.setImplicitExit(true);
            IndexUI.stage.close();
            Platform.exit();
        });
    }
}
